.guest.howitworks_page {
  background-color: #fff;
}

.row .col-sm-6:first-child {
  padding-right: 0;
}

.row .col-sm-6:last-child {
  padding-left: 0;
}

.terms_content .row {
  margin-top: 150px;
  display: flex;
  align-items: center;
}

.terms_content .row:nth-child(2) {
  margin-top: 60px;
}

.terms_content .row:first-child {
  margin-top: 0;
}

.how_main_head {
  color: #1a272d;
  font-size: 58px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 35px;
  text-decoration: none;
}

.how_main_para {
  font-size: 14px;
  font-weight: 500;
  color: #545353;
  margin-bottom: 40px;
}

.how_content_box {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  min-height: 404px;
  max-width: 497px;
  filter: drop-shadow(0 46px 67px rgba(84, 83, 83, 0.1));
  z-index: 3;
  position: relative;
  margin: auto;
}

.how_count {
  width: 85px;
  height: 85px;
  display: block;
  background-color: #fdf001;
  border-radius: 60px;
  font-size: 42px;
  font-weight: 600;
  color: #000;
  text-align: center;
  line-height: 85px;
  margin-bottom: 15px;
}

.how_img2 .how_count {
  margin: 0 auto 20px;
  background-color: #000;
  color: #fdf001;
}

.how_head {
  font-size: 28px;
  font-weight: 600;
  color: #000;
}

.how_list {
  padding-left: 15px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  color: #545353;
  line-height: 26px;
}

.how_list li {
  margin-top: 10px;
}

.how_img img {
  display: block;
  margin: auto;
  z-index: 2;
  position: relative;
}

.how_img {
  position: relative;
  margin: auto;
}

.how_img:before {
  content: "";
  background-color: #f3f3f3;
  width: 702px;
  height: 117%;
  display: block;
  position: absolute;
  left: -72px;
  top: -45px;
  z-index: 0;
  border-radius: 15px;
}

.ar .how_img._active:before {
  right: -92px;
  left: auto;
}

.ar .how_img::before {
  left: -92px;
}

.how_img._active:before {
  background-color: #fdf001;
}

.how_img2 {
  background-color: #f3f3f3;
  border-radius: 15px;
  padding: 60px 40px 0;
}

.how_img2 img {
  width: 100%;
}

@media (max-width: 575px) {
  .how_main_head {
    font-size: 42px;
    margin-top: 15px;
  }

  .how_main_para {
    margin-bottom: 15px;
  }

  .terms_content .row:nth-child(2) {
    margin-top: 20px;
  }

  .terms_content .row {
    flex-direction: column;
    margin-top: 50px;
  }

  .row .col-sm-6:first-child {
    padding-right: 15px;
  }

  .row .col-sm-6:last-child {
    padding-left: 15px;
  }

  .how_count {
    width: 45px;
    height: 45px;
    font-size: 22px;
    line-height: 46px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .how_head {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .how_list {
    line-height: 22px;
  }

  .how_content_box {
    border-radius: 15px;
    padding: 20px;
    min-height: 275px;
  }

  .how_img img {
    width: 100%;
  }

  .how_img {
    margin: 60px auto 0;
  }

  .how_img::before {
    content: "";
    background-color: #f3f3f3;
    width: 109%;
    height: 117%;
    right: 0;
    left: 0;
    margin-left: -15px;
    margin-right: -15px;
    top: -35px;
    border-radius: 0;
  }

  .ar .how_img._active::before {
    right: 0;
    left: 0;
    margin-left: -15px;
    margin-right: -15px;
  }

  .terms_content .row:nth-child(3),
  .terms_content .row:nth-child(5) {
    flex-direction: column-reverse;
  }

  .terms_content {
    overflow: hidden;
  }
}

/* ======== */
.how_content_box,
.how_img2 {
  background-color: var(--bg-secondary);
  color: #fff;
}

.how_count,
.how_head,
.how_list li,
.how_main_head,
.how_main_para,
.how_img._active:before,
.how_count,
.how_img2 .how_count,
.how_list {
  color: #fff;
}

.how_img._active:before,
.how_count,
.how_img2 .how_count,
.how_img:before {
  background-color: var(--main-color);
}

.how_content_box {
  margin-left: auto;
  margin-right: 0;
}

.how_content_box-two {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.arabic-version .how_content_box-two {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.arabic-version .how_content_box {
  margin-right: auto;
  margin-left: 0;
}

.arabic-version .how_img:before {
  left: -5px;
}

.how_img3:before {
  left: auto;
}

.arabic-version .how_img3:before {
  right: -10px;
  left: auto;
}

@media (max-width: 1200px) {

  .how_img:before,
  .how_img3:before {
    left: 50% !important;
    top: 50%;
    right: auto !important;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .how_content_box,
  .how_content_box-two,
  .arabic-version .how_content_box,
  .arabic-version .how_content_box-two {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .how_img img {
    max-width: 100%;
  }

  .how_img {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .how_img:before {
    position: static;
  }
}

.how_img img {
  max-width: 100%;
}

/* Changes */
.dark-mode .how_content_box,
.how_img2 {
  background-color: var(--bg-secondary-dark);
  color: #fff;
}

.how_img2 span,
.how_img2 h2,
.how_img2 p {
  color: #fff !important;
}

.how_head,
.how_list li,
.how_main_head,
.how_main_para,
.how_img._active:before,
.how_count,
.how_img2 .how_count,
.how_list {
  color: #000;
}

.dark-mode .how_count,
.dark-mode .how_head,
.dark-mode .how_list li,
.dark-mode .how_main_head,
.dark-mode .how_main_para,
.dark-mode .how_img._active:before,
.dark-mode .how_count,
.dark-mode .how_img2 .how_count,
.dark-mode .how_list {
  color: #fff;
}